import "babel-polyfill";
import 'normalize.css'; // Note this
import Vue from 'vue';
import App from './App';
import axios from './api/index'
import router from "./router";
import store from "./store/index";
import loadingPlugin from "@/plugins/Loading/index";
import vant from "vant";

import createDialog from "@/plugins/createDialog";
import 'vant/lib/index.css';
import '@/assets/css/fonts.css' //公共css

Vue.use(createDialog);
Vue.use(loadingPlugin.directive);
Vue.use(vant);
// Vue.prototype.$axios = axios


new Vue({
  el: '#app',
  store,
  router,
  template: '<App />',
  components: { App }
});

if (module.hot) {
  module.hot.accept(err => { 
    console.warn('module.hot.accept - err: ');
    console.log(err);
    // console.log('\n');
  });
}